package mvc;

public class NewsPost {
	  
	private String username = null;
	private String firstname = null;
	private String lastname = null;
	private String email = null;
    private String text = null;
	private String date = null;
	private String id = null;
	private String topic = null;
	       
public NewsPost(String username, String firstname, String lastname, 
				String email, String text, String date, String id, 
				String topic) { 

    this.text = text;
	this.username = username;
	this.firstname = firstname;
	this.lastname = lastname;
	this.email = email;	
	this.date = date;
	this.id = id;
	this.topic = topic;
}
       
public String getUsername() { return this.username; }  

public String getFirstname() { return this.username; }  

public String getLastname() { return this.username; } 

public String getName() { return this.firstname + " " + this.lastname; }

public String getEmail() { return this.email; }   

public String getDate() { return this.date; }
  
public String getText() { return this.text.replaceAll("\n","<br>"); }

public String getId() { return this.id; }

public String getTopic() { return this.topic; }
}